package edu.tamu.cse.teamproject1.Database;


/**
 * 
 * @author Ben Unsworth
 * 
 * This is the subclass of TupleElement
 *
 */
public class TupleFloatElement extends TupleElement {
	
	/**
	 * constructor, defines the type and value of this TupleElement
	 * @param value
	 */
	public TupleFloatElement(Float value){
		tupleValue = value;
		size = 255;
		tupleType = EnumColumnType.floating;
	}
	
	/**
	 * 
	 * @return Float
	 */
	@Override
	public Float getValue(){
		return (Float)tupleValue;
	}
	
	/**
	 * defines the value of this TupleElement
	 * @param value
	 */
	@Override
	public void setValue(Object value){
		tupleValue = (Float)value;
	}
}
